package imoney.shared;

/**
 * A static class used to factorize URLs of the app and parameters name, so if a
 * page changes of format, the name won't have to be changed across all the project.
 * 
 * @author Arnaud PELOQUIN
 *
 */
public final class Statics {
	/*
	 * URLs -----------------------------------------------
	 */
	/**
	 * The url of the home of the application.
	 */
	public static final String HOME_URL = "/auth/IMoney.html";
	
	/**
	 * The url of the page that enables to manage the account for the app
	 * (in fact juste set a pseudo, maybe to join some groups too).
	 */
	public static final String ACCOUNT_URL = "/auth/account.jsp";
	/**
	 * The url of the identification servlet, to use if a person is not in
	 * the context or the cookie has not been stored.
	 */
	public static final String LOGGIN_URL = "/imoney/identification";
	
	public static final String DEFAULT_ERROR_URL = "/public/errorPage.html";

	/*
	 * PARAMETERS  --------------------------------
	 */
	public static final String Context_LIST_PERSONS = "personList";
	public static final String Cookie_INDEX_OF_PERSON = "contextIndexOfPerson";

	/*
	 * 	HTTP REQUEST PARAMETERS
	 */
	public static final String SRC_URL_PARAM = "source";
	public static final String REDIRECT_PARAM = "redir";
	public static final String FALSE = "false";
	
	/*
	 * DEFAULT VALUES
	 */
	public static final String NULL_PSEUDO = "nullPseudo";
	public static final String DEFAULT_PSEUDO = "Pseudal";
	public static final String SEPARATOR = "_";
	
}
